<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true"  codefile="HICC1.ascx.vb" Inherits="NVPortal.Modules.NV_SlideIMG.inc_default" %>
<link rel="stylesheet" href="/DesktopModules/NV_SlideIMG/Display/css/hicc1.css" />
<script src="/DesktopModules/NV_SlideIMG/Display/js/jquery.min.js" type="text/javascript"></script>
<script src="/DesktopModules/NV_SlideIMG/Display/js/slides.min.jquery.js" type="text/javascript"></script>
<script>
	    $(function () {
	        $('#slides').slides({
	            preload: true,
	            preloadImage: '/DesktopModules/NV_SlideIMG/Display/img/loading.gif',
	            play: 5000,
	            pause: 2500,
	            hoverPause: true,
	            animationStart: function (current) {
	                $('.caption').animate({
	                    bottom: -35
	                }, 100);
	                if (window.console && console.log) {
	                    // example return of current slide number
	                    console.log('animationStart on slide: ', current);
	                };
	            },
	            animationComplete: function (current) {
	                $('.caption').animate({
	                    bottom: 0
	                }, 200);
	                if (window.console && console.log) {
	                    // example return of current slide number
	                    console.log('animationComplete on slide: ', current);
	                };
	            },
	            slidesLoaded: function () {
	                $('.caption').animate({
	                    bottom: 0
	                }, 200);
	            }
	        });
	    });
	</script>
		<div id="example">
			<div id="slides">
				<div class="slides_container">
                        <asp:Repeater runat="server" ID="rptData">
                            <ItemTemplate>
                            <div class="slide">
                                <a href="<%# DataBinder.Eval(Container.DataItem,"link")%>" title="<%# DataBinder.Eval(Container.DataItem,"title")%>"><img src="<%# PortalSettings.HomeDirectory & "Slides/Images/" & DataBinder.Eval(Container.DataItem,"LinkIMG")%>" title="<%# DataBinder.Eval(Container.DataItem,"title")%>" width="990" height="439" /></a>
                                    <div class="caption">
							            <p><%# DataBinder.Eval(Container.DataItem,"title")%></p>
                                        <span><%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"Caption"))%></span>
						            </div>
                            </div>
                            </ItemTemplate>
                        </asp:Repeater>
					</div>
				<a href="#" class="prev"><img src="/DesktopModules/NV_SlideIMG/Display/img/arrow-prev.png" width="30" height="43" alt="Arrow Prev"></a>
				<a href="#" class="next"><img src="/DesktopModules/NV_SlideIMG/Display/img/arrow-next.png" width="30" height="43" alt="Arrow Next"></a>
			</div>
		</div>


    
